Documents > Cookbook >Cell Range
CellRange cellRange = table.getCellRangeByPosition(1, 0, 2, 0);
CellRange cellRangeAdd = table.getCellRangeByPosition("$E1","$E6");
Table table1 = document.getTableByName("Table1");
CellRange cellrange = table1.getCellRangeByPosition(0, 0, table1.getColumnCount()-1, table1.getRowCount()-1);
cellRange.merge();
table1 = document.getTableByName("Table1");
CellRange firstColumn = table1.getCellRangeByPosition(0, 0, 0, table1.getRowCount()-1);
firstColumn.merge();
table1 = document.getTableByName("Table1");
int rowCount = table1.getRowCount();
CellRange firstTwoRow = table1.getCellRangeByPosition(0, 0, table1.getColumnCount()-1, 1);
firstTwoRow.merge();
Table sheet1 = document.getTableByName("Sheet1");
CellRange cellRange2 = sheet1.getCellRangeByPosition("$E1","$E6");
cellRange2.setCellRangeName("TimeCellRange");
cellRange2.merge();